package com.lzy.system.fileManage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzy.exception.BusException;
import com.lzy.system.fileManage.entity.SysFile;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 附件管理 服务类
 * </p>
 *
 * @author lcc
 * @since 2023-12-28
 */
public interface ISysFileService extends IService<SysFile> {
    /**
     * 上传文件
     * @param uid
     * @param file
     * @return
     * @throws BusException
     */
    public SysFile saveFile(Long uid, MultipartFile file) throws BusException;

    /**
     * 获取文件
     * @param id
     * @throws Exception
     */
    public String getFile(String id) throws BusException;
}
